package com.flag.liutao.modules.role.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("添加或修改授权信息param")
public class UserRoleParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("年级ID")
    @NotNull(message = "请选择年级")
    private Long gradeId;

    @ApiModelProperty("分队ID")
    @NotNull(message = "请选择分队")
    private Long unitId;


    @ApiModelProperty("用户ID")
    @NotNull(message = "请选择队员")
    private Long userId;


    @ApiModelProperty("角色ID")
    @NotNull(message = "请选择职务")
    private Long roleId;

    @ApiModelProperty("授衔时间")
    private Date takeTime;

    @ApiModelProperty("卸衔时间")
    private Date retireTime;

}
